Quadratic residue and non residue